﻿<UserControl x:Class="Pronama.NamaAlert.AddIn.DefaultAlertContentPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <ComboBox SelectedIndex="0" Margin="0 0 0 5" Width="100">
                <ComboBoxItem Content="すべて" />
                <ComboBoxItem Content="コミュニティ" />
                <ComboBoxItem Content="チャンネル" />
                <ComboBoxItem Content="ユーザー" />
            </ComboBox>
            <TextBox Grid.Column="1" Margin="5 0 0 5" VerticalAlignment="Center" HorizontalAlignment="Stretch" />
            
            <StackPanel Grid.Column="2" Margin="5 0 0 0">
                <ToggleButton Content="✚" Width="20" />
            </StackPanel>
        </Grid>

        <sdk:DataGrid Grid.Row="1" x:Name="AlertTargetDataGrid" ItemsSource="{Binding}"
                      AutoGenerateColumns="False" SelectionMode="Extended" 
                      ScrollViewer.VerticalScrollBarVisibility="Visible">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn Binding="{Binding Id}" Header="ID" />
                <sdk:DataGridTextColumn Binding="{Binding Name}" Header="NAME" />
                <sdk:DataGridTextColumn Binding="{Binding TypeFriendlyName}" Header="TYPE" />
                <sdk:DataGridCheckBoxColumn Binding="{Binding AlertByWindow}" Header="" CanUserResize="False" Width="Auto"  />
                <sdk:DataGridCheckBoxColumn Binding="{Binding AlertByBrowser}" Header="" CanUserResize="False" Width="AUto" />

            </sdk:DataGrid.Columns>
        </sdk:DataGrid>

        <Grid Grid.Row="2">
            <StackPanel Orientation="Horizontal" Margin="5">
                <Image Width="64" Height="64" />
            </StackPanel>
        </Grid>

    </Grid>
</UserControl>
